aparece isso
[Error - Action Interface]
[19/10/2018 12:36:44] data/actions/scripts/questy.lua:onUse
[19/10/2018 12:36:44] Description:
[19/10/2018 12:36:44] (luaDoTransformItem) Item not found
E SEmpree vem na pokeball
info
Grupo: Artesão
Registrado: 18/07/17
Posts: 103
Reputação: 0
Gênero: Masculino

aparece isso
[Error - Action Interface]
[19/10/2018 12:36:44] data/actions/scripts/questy.lua:onUse
[19/10/2018 12:36:44] Description:
[19/10/2018 12:36:44] (luaDoTransformItem) Item not found
E SEmpree vem na pokeball
info
Grupo: Conde
Registrado: 21/04/16
Posts: 831
Reputação: +271
Gênero: Masculino

Me manda print dos Id's da Cherish ball pf
info
Grupo: Artesão
Registrado: 18/07/17
Posts: 103
Reputação: 0
Gênero: Masculino

info
Grupo: Conde
Registrado: 21/04/16
Posts: 831
Reputação: +271
Gênero: Masculino

Faça o teste e me diga o resultado
--[[
MARSHMELLO
]]
local pokemon = "Gengar"
local sto = 31526
local bType = "Cherish"
local level = 150
function onUse(cid, fromPos, topos)
if getPlayerStorageValue(cid,storage) == -1 then
if getPlayerLevel(cid) >= level then
addPokeToPlayer(cid,pokemon,0 ,nil ,bType)
doTransformItem(item, 13551)
doPlayerSendTextMessage(cid,25, "Parabéns você ganhou um "..pokemon.." como premio! ") -- Msg ao completar a quest
setPlayerStorageValue(cid,storage,1)
else
doPlayerSendTextMessage(cid, 27, "Você precisa de level "..level.." para passar")
end
else
doPlayerSendTextMessage(cid, 27, "Você já pegou oque estava dentro")
end
return true
end
info
Grupo: Artesão
Registrado: 18/07/17
Posts: 103
Reputação: 0
Gênero: Masculino

deu esse erro
[19/10/2018 13:13:32] [Error - Action Interface]
[19/10/2018 13:13:32] data/actions/scripts/questy.lua:onUse
[19/10/2018 13:13:32] Description:
[19/10/2018 13:13:32] (luaDoTransformItem) Item not found
[19/10/2018 13:13:32] [Error - Action Interface]
[19/10/2018 13:13:32] data/actions/scripts/questy.lua:onUse
[19/10/2018 13:13:32] Description:
[19/10/2018 13:13:32] (luaDoTransformItem) Item not found
ent Marshmello,eu mudei no goback,ent deu certinho ai
local ballName = getItemAttribute(item.uid, "cherish")
local btype = getPokeballType(item.itemid)
local usando = pokeballs[btype].use
Dx eu te perguntar,tem como colocar +balls nesse local?
info
Grupo: Conde
Registrado: 21/04/16
Posts: 831
Reputação: +271
Gênero: Masculino

Aqui funcionou

Tente Esse
--[[
MARSHMELLO
]]
local pokemon = "Gengar"
local sto = 31526
local bType = "Cherish"
local level = 150
function onUse(cid, fromPos, topos)
if getPlayerStorageValue(cid,storage) == -1 then
if getPlayerLevel(cid) >= level then
addPokeToPlayer(cid,pokemon,0 ,nil ,bType)
doTransformItem(item, 13551)
doPlayerSendTextMessage(cid,25, "Parabéns você ganhou um "..pokemon.." como premio! ") -- Msg ao completar a quest
setPlayerStorageValue(cid,storage,1)
else
doPlayerSendTextMessage(cid, 27, "Você precisa de level "..level.." para passar")
end
else
doPlayerSendTextMessage(cid, 27, "Você já pegou oque estava dentro")
end
return true
end
info
Grupo: Artesão
Registrado: 18/07/17
Posts: 103
Reputação: 0
Gênero: Masculino

AHH Deu ❤️
Ty
+uma pergunta,kk,como da rep+?
info
Grupo: Conde
Registrado: 21/04/16
Posts: 831
Reputação: +271
Gênero: Masculino

1 minuto atrás, Olan trein disse:AHH Deu ❤️
Ty
+uma pergunta,kk,como da rep+?

Marque tmbn a melhor resposta
info
Grupo: Artesão
Registrado: 18/07/17
Posts: 103
Reputação: 0
Gênero: Masculino

Fames e Marshmello,Ty pela ajuda os 2
info
Grupo: Infante
Registrado: 22/12/12
Posts: 2k
Reputação: +736
Gênero: Masculino
Char no Tibia: Marley

info
Grupo: Conde
Registrado: 21/04/16
Posts: 831
Reputação: +271
Gênero: Masculino
Pegando o codigo do Amigo @FlamesAdmin
local btype = "normal" ----Tipo de Pokeball local pokemon = "Gengar" ----Pokémon que virá no bau local storage = 90024 -- storage para nao pegar o premio + de 1 vez function onUse(cid, frompos, item2, topos) if pokemon == "" then return true end if getPlayerStorageValue(cid, storage) <= 0 then addPokeToPlayer(cid, pokemon, 0, nil, btype) doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "Voce pegou seu "..pokemon.."!!") ----Mensagem que o player receberá doSendMagicEffect(getThingPos(cid), 29) doSendMagicEffect(getThingPos(cid), 27) doSendMagicEffect(getThingPos(cid), 29) --doPlayerAddItem(cid, 2160, 100) -----CASO QUEIRA ADICIONAR ALGUMA RECOMPENSA A MAIS setPlayerStorageValue(cid, storage, 1) else doPlayerSendCancel(cid, "Você já pegou seu Pokémon") ---Mensagem q sera enviada quando o player tentar fazer a quest + de 1 vez end return TRUE endTesta e me diz o resultado